package com.bdsy.business.controller;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bdsy.business.model.ShopType;
import com.bdsy.business.service.ShopTypeService;
import com.bdsy.common.annotation.Json;
import com.bdsy.common.utils.Result;
import com.bdsy.system.annotation.SysLog;

/**
 * 商品类型信息
 * @author MING
 * @date 2017年12月29日 上午11:17:13
 */

@Controller
@RequestMapping(value = {"${web.adminPath}", "${web.appPath}"})
public class ShopTypeController {

	@Autowired
	ShopTypeService shopTypeService;

	/**
	 * 查询商品类型信息
	 */
	@Json
	@RequestMapping(value = "shopTypeList")
	public Object shopTypeList() {
		
		Map<String,Object> map = new LinkedHashMap<>();
		List<ShopType> shopTypeInfo = shopTypeService.shopTypeInfo();
		map.put("code", 200);
		map.put("msg", "success");
		map.put("data", shopTypeInfo);
		return map;
	}
	
}
